package com.yuexun.dhdoctor.module.contractmanage.adapter;

import android.widget.AbsListView;
import android.widget.TextView;


import com.yuexun.dhdoctor.R;
import com.yuexun.dhdoctor.module.contractmanage.bean.ContractManageTestBean;

import org.kymjs.kjframe.widget.AdapterHolder;
import org.kymjs.kjframe.widget.KJAdapter;

import java.util.Collection;

/**
 * Created by work-jx on 2016/10/27.
 */
public class ContractManageTestAdapter extends KJAdapter<ContractManageTestBean.RowsBean> {

    public ContractManageTestAdapter(AbsListView view, Collection<ContractManageTestBean.RowsBean> mDatas, int itemLayoutId) {
        super(view, mDatas, itemLayoutId);
    }

    @Override
    public void convert(AdapterHolder adapterHolder, ContractManageTestBean.RowsBean contractManageTestBean, boolean b) {
        TextView testlist_item_statu = (TextView)adapterHolder.getView(R.id.testlist_item_status);
        adapterHolder.setText(R.id.testlist_item_name,"项目名称:"+contractManageTestBean.getItem_name());
        adapterHolder.setText(R.id.testlist_item_time,contractManageTestBean.getApply_dtime());
//        adapterHolder.setText(R.id.testlist_item_status, contractManageInspectBean.getSTATUS());
//        onPicClick(adapterHolder.getConvertView(), contractManageInspectBean);
    }
}
